package com.xjh.basestudy.designmode.behaviorMode.behaviorMode6_Memento.p1_origin;

/**
 * @Author XuJianHua
 * @Date 2022/10/4 20:11
 * @Description

 */
public class Doc {

    private String title;//文档标题
    private String body;//文档内容

    public Doc(String title){
        this.title = title; //新建文档先命名
        this.body = "";//新建文档内容为空
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

}